<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Autovermietung: CompactCar Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Autovermietung
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_compact_car.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_compact_car-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CompactCar Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a> class.  
 <a href="class_compact_car.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_compact_car_8h_source.html">CompactCar.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for CompactCar:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_compact_car.png" usemap="#CompactCar_map" alt=""/>
  <map id="CompactCar_map" name="CompactCar_map">
<area href="class_car.html" title="Header for the Car class." alt="Car" shape="rect" coords="46,56,128,80"/>
<area href="class_object.html" title="Header for the Object class." alt="Object" shape="rect" coords="0,0,82,24"/>
<area href="class_i_car.html" title="Header for the ICar class." alt="ICar" shape="rect" coords="92,0,174,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a69cf6c9a52d21f237ff369a448668cfa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_compact_car.html#a69cf6c9a52d21f237ff369a448668cfa">CompactCar</a> (std::string const &amp;manufacturer, std::string const &amp;type)</td></tr>
<tr class="memdesc:a69cf6c9a52d21f237ff369a448668cfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of a <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a>.  <a href="#a69cf6c9a52d21f237ff369a448668cfa"></a><br/></td></tr>
<tr class="separator:a69cf6c9a52d21f237ff369a448668cfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_car"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_car')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_car.html">Car</a></td></tr>
<tr class="memitem:a977f68ea0039e94a573cbbf31fc8731b inherit pub_methods_class_car"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a977f68ea0039e94a573cbbf31fc8731b">Car</a> (std::string const &amp;manufacturer, std::string const &amp;type)</td></tr>
<tr class="memdesc:a977f68ea0039e94a573cbbf31fc8731b inherit pub_methods_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of class <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>.  <a href="#a977f68ea0039e94a573cbbf31fc8731b"></a><br/></td></tr>
<tr class="separator:a977f68ea0039e94a573cbbf31fc8731b inherit pub_methods_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1318b862002b8f3123bd4fbf58e24b2e inherit pub_methods_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1318b862002b8f3123bd4fbf58e24b2e"></a>
std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a1318b862002b8f3123bd4fbf58e24b2e">GetManufacturer</a> () const </td></tr>
<tr class="memdesc:a1318b862002b8f3123bd4fbf58e24b2e inherit pub_methods_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the manufacturer of the car. <br/></td></tr>
<tr class="separator:a1318b862002b8f3123bd4fbf58e24b2e inherit pub_methods_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5051a69dc7e787dc5dbd544c05d28295 inherit pub_methods_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5051a69dc7e787dc5dbd544c05d28295"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a5051a69dc7e787dc5dbd544c05d28295">GetPrice</a> () const </td></tr>
<tr class="memdesc:a5051a69dc7e787dc5dbd544c05d28295 inherit pub_methods_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the price of a car + its extras. <br/></td></tr>
<tr class="separator:a5051a69dc7e787dc5dbd544c05d28295 inherit pub_methods_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1156e559ec86246842096749efcb5b61 inherit pub_methods_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1156e559ec86246842096749efcb5b61"></a>
std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a1156e559ec86246842096749efcb5b61">GetType</a> () const </td></tr>
<tr class="memdesc:a1156e559ec86246842096749efcb5b61 inherit pub_methods_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Type of the <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>. <br/></td></tr>
<tr class="separator:a1156e559ec86246842096749efcb5b61 inherit pub_methods_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44a178a353f2e2a254bd43dab7fdcc89 inherit pub_methods_class_car"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a44a178a353f2e2a254bd43dab7fdcc89">Print</a> (std::ostream &amp;stream) const </td></tr>
<tr class="memdesc:a44a178a353f2e2a254bd43dab7fdcc89 inherit pub_methods_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints a car including its extras.  <a href="#a44a178a353f2e2a254bd43dab7fdcc89"></a><br/></td></tr>
<tr class="separator:a44a178a353f2e2a254bd43dab7fdcc89 inherit pub_methods_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#aa3e791419d84c4c346ef9499513b8e00">~Object</a> ()</td></tr>
<tr class="memdesc:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of the <a class="el" href="class_object.html" title="Header for the Object class.">Object</a> class.  <a href="#aa3e791419d84c4c346ef9499513b8e00"></a><br/></td></tr>
<tr class="separator:aa3e791419d84c4c346ef9499513b8e00 inherit pub_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_car"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_car')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_car.html">ICar</a></td></tr>
<tr class="memitem:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c5050a1e2aca8702bd4724985cdb3b0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#a1c5050a1e2aca8702bd4724985cdb3b0">~ICar</a> ()</td></tr>
<tr class="memdesc:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">The DTor of <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a>. Implemented to make the DTor virtual. <br/></td></tr>
<tr class="separator:a1c5050a1e2aca8702bd4724985cdb3b0 inherit pub_methods_class_i_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ab7afaa58906c0a545fa3f032bbf12f4e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_compact_car.html#ab7afaa58906c0a545fa3f032bbf12f4e">DoPrint</a> (std::ostream &amp;stream) const </td></tr>
<tr class="memdesc:ab7afaa58906c0a545fa3f032bbf12f4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints the text of a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>.  <a href="#ab7afaa58906c0a545fa3f032bbf12f4e"></a><br/></td></tr>
<tr class="separator:ab7afaa58906c0a545fa3f032bbf12f4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_object"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_object')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="class_object.html">Object</a></td></tr>
<tr class="memitem:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object.html#a86a84ed2d1207e5f8827165ac2941106">deleteObject</a> (<a class="el" href="class_object.html">Object</a> *obj)</td></tr>
<tr class="memdesc:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frees the memory used by obj.  <a href="#a86a84ed2d1207e5f8827165ac2941106"></a><br/></td></tr>
<tr class="separator:a86a84ed2d1207e5f8827165ac2941106 inherit pub_static_methods_class_object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_car"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_car')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_car.html">Car</a></td></tr>
<tr class="memitem:ae92b41db025aa0c95988dab803dae125 inherit pro_attribs_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae92b41db025aa0c95988dab803dae125"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#ae92b41db025aa0c95988dab803dae125">mManufacturer</a></td></tr>
<tr class="memdesc:ae92b41db025aa0c95988dab803dae125 inherit pro_attribs_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">The manufacturer of a car. <br/></td></tr>
<tr class="separator:ae92b41db025aa0c95988dab803dae125 inherit pro_attribs_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a439bf71e72348f8c3b0d77f4950472d9 inherit pro_attribs_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a439bf71e72348f8c3b0d77f4950472d9"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#a439bf71e72348f8c3b0d77f4950472d9">mPrice</a></td></tr>
<tr class="memdesc:a439bf71e72348f8c3b0d77f4950472d9 inherit pro_attribs_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Price of a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> (in a certain car class and price class respectively) <br/></td></tr>
<tr class="separator:a439bf71e72348f8c3b0d77f4950472d9 inherit pro_attribs_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa73f084f13f460fd53c937cfff2cf76a inherit pro_attribs_class_car"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa73f084f13f460fd53c937cfff2cf76a"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_car.html#aa73f084f13f460fd53c937cfff2cf76a">mType</a></td></tr>
<tr class="memdesc:aa73f084f13f460fd53c937cfff2cf76a inherit pro_attribs_class_car"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of a car. <br/></td></tr>
<tr class="separator:aa73f084f13f460fd53c937cfff2cf76a inherit pro_attribs_class_car"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a> class. </p>
<p>Represents a <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a> and holds information about it</p>
<p>The <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a> class holds the price of a <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a>. Its information is passed through to a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>.</p>
<dl class="section author"><dt>Author</dt><dd>Andreas Lehner </dd></dl>
<dl class="section date"><dt>Date</dt><dd>22.11.2012 </dd></dl>

<p>Definition at line <a class="el" href="_compact_car_8h_source.html#l00015">15</a> of file <a class="el" href="_compact_car_8h_source.html">CompactCar.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a69cf6c9a52d21f237ff369a448668cfa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CompactCar::CompactCar </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>manufacturer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CTor of a <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a>. </p>
<p>The constructor passes information about manufacturer, type and price of the <a class="el" href="class_compact_car.html" title="Header for the CompactCar class.">CompactCar</a> through to a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>. The price is determined and cannont be changed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">manufacturer</td><td>A string holding the maufacturer of the car </td></tr>
    <tr><td class="paramname">type</td><td>A string holding the type of the car </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_compact_car_8h_source.html#l00024">24</a> of file <a class="el" href="_compact_car_8h_source.html">CompactCar.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab7afaa58906c0a545fa3f032bbf12f4e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CompactCar::DoPrint </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints the text of a <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>. </p>
<p>This function is used to get the class of a car. This method is called by the Template Method <a class="el" href="class_car.html#a44a178a353f2e2a254bd43dab7fdcc89" title="Prints a car including its extras.">Print()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The ostream where the information is output </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_car.html#ad6a7b5f19ccb57942f7e8bc371b4f6a4">Car</a>.</p>

<p>Definition at line <a class="el" href="_compact_car_8h_source.html#l00029">29</a> of file <a class="el" href="_compact_car_8h_source.html">CompactCar.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_compact_car.html">CompactCar</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
